<?php
// no direct access
defined('_JEXEC') or die('Restricted access');


// Check is cURL extention is loaded
if  (!in_array  ('curl', get_loaded_extensions())) {
	echo '<div style="text-align: center; padding: 50px; color: red;">' . JText::_('P2G_CURL_REQUIRED') . '</div>';
	return;
}

// Require the base controller
require_once (JPATH_COMPONENT.DS.'controller.php');

$classname	= 'picasa2galleryController';
$controller = new $classname( );
$controller->execute( JRequest::getVar('task'));
$controller->redirect();

?>
